/**
 * @Author YuanYuan
 * @Date 2022/4/27
 * @Time 13:43
 */
public class TestDemo {
    public static int max(int a,int b) {
        return (a>b?a:b);
    }
    public static double max(double a,double b) {
        return (a>b?a:b);
    }
    public static double max(double a,double b,int c) {

       return (max(a,b)>c?max(a,b):c);
    }
    public static void main(String[] args) {
        int a = 1,b = 2;
        System.out.println(max(a,b));
        System.out.println(max(3.1,4.5));
        System.out.println(max(1.2,2.4,8));

    }
}
